package com.hua.designpattern.structural.flyweight;

@SuppressWarnings("unused")
public class Shape {
	private String name;

	private Point point;

	private Color color;

	public Shape(String name, Point point, String colorName) {
		this.name = name;
		this.point = point;
		this.color = ColorFlyWeight.getColor(colorName);
		System.out.println("++++create new Shape invoke:" + this);
	}

	@Override
	public String toString() {
		return super.toString() + "[name=" + name + "]";
	}

}
